package com.ruoyi.pg.careSetting.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.utils.PageUtils;
import com.ruoyi.pg.careSetting.domain.PgNursingProject;
import com.ruoyi.pg.careSetting.vo.PgNursingProjectVo;
import com.ruoyi.pg.careSetting.mapper.PgNursingProjectMapper;
import com.ruoyi.pg.careSetting.service.IPgNursingProjectService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 护理项目Service业务层处理
 *
 * @author Ming
 * @date 2025-10-20
 */
@Service
public class PgNursingProjectServiceImpl extends ServiceImpl<PgNursingProjectMapper, PgNursingProject> implements IPgNursingProjectService {

    @Override
    public TableDataInfo<PgNursingProjectVo> queryList(PgNursingProjectVo entity) {
        return PageUtils.buildDataInfo(this.baseMapper.queryList(PageUtils.buildPage(), entity));
    }

    @Override
    public List<PgNursingProjectVo> queryAll(PgNursingProjectVo entity) {
        return this.baseMapper.queryList(entity);
    }

    @Override
    public PgNursingProjectVo queryById(Long id) {
        return this.baseMapper.queryById(id);
    }
}
